import request from '../utils/request'

// 数据清洗
export function dataCleaning(params) {
  return request({
    url: '/etlItemDetail/dataCleaning',
    method: 'post',
    data: params
  })
}

// 数据采集
export function dataDecimation(params) {
  return request({
    url: '/etlItemDetail/dataDecimation',
    method: 'post',
    data: params
  })
}

// 系统数据
export function listByPeriod(params) {
  return request({
    url: '/etlItemSummary/listByPeriod',
    method: 'post',
    data: params
  })
}

// 系统数据-导出
export function dataExport(params) {
  return request({
    url: '/etlItemSummary/export',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

// 工作量指标分值
export function getListByPeriod(params) {
  return request({
    url: '/workloadSummary/listByPeriod',
    method: 'post',
    data: params
  })
}

// 工作量指标分值-归档
export function isFile(params) {
  return request({
    url: '/assessmentCycle/isFile',
    method: 'get',
    params
  })
}

// 工作量指标分值-导出
export function exportData(params) {
  return request({
    url: '/workloadSummary/export',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

// 手工导入-分页查询
export function pageByPeriod(params) {
  return request({
    url: '/etlItemImport/pageByPeriod',
    method: 'post',
    data: params
  })
}

// 手工导入-导入
export function importExcel(params) {
  return request({
    url: '/etlItemImport/importExcel',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

// 手工导入-下载模板
export function importExport(params) {
  return request({
    url: '/etlItemImport/export',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

// 手工导入-删除
export function remove(params) {
  return request({
    url: '/etlItemImport/remove',
    method: 'post',
    params
  })
}

// 手工导入-修改
export function update(params) {
  return request({
    url: '/etlItemImport/update',
    method: 'post',
    data: params
  })
}

// 手工导入-指标
export function dataListByPeriod(params) {
  return request({
    url: '/workloadTargetAdministration/listByPeriod',
    method: 'get',
    params
  })
}

// 手工导入-工作量类型
export function listSysDicT(params) {
  return request({
    url: '/sysDictItem/listSysDicT',
    method: 'get',
    params
  })
}
